package com.hengpeng.itfinbase.persist;

import java.util.Date;

import javax.persistence.Entity;

import com.hengpeng.itfinbase.idAssign.AbstractAssign18IdEntity;

/**
 * 用户推荐关系表
 * 
 * @author weiyuan
 */
@Entity
public class UserRefer extends AbstractAssign18IdEntity {

	/**
     * 
     */
	private static final long serialVersionUID = -6976803970140937713L;
	/**
	 * 邀请人id
	 */
	private Long fromUserId;
	/**
	 * 邀请人邀请码
	 */
	private String fromCode;
	/**
	 * 被邀请人id
	 */
	private Long toUserId;
	/**
	 * 被邀请人邀请码
	 */
	private String toCode;
	/**
	 * 邀请成功时间
	 */
	private Date inviteTime;

	private Date createTime;

	private Date updateTime;

	public String getFromCode() {
		return fromCode;
	}

	public void setFromCode(String fromCode) {
		this.fromCode = fromCode;
	}

	public Long getFromUserId() {
		return fromUserId;
	}

	public void setFromUserId(Long fromUserId) {
		this.fromUserId = fromUserId;
	}

	public Long getToUserId() {
		return toUserId;
	}

	public void setToUserId(Long toUserId) {
		this.toUserId = toUserId;
	}

	public String getToCode() {
		return toCode;
	}

	public void setToCode(String toCode) {
		this.toCode = toCode;
	}

	public Date getInviteTime() {
		return inviteTime;
	}

	public void setInviteTime(Date inviteTime) {
		this.inviteTime = inviteTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
